<template>
    <div>
        <div>自定义组件--倒计时</div>
        <div>----------------------------------------------------------</div>
        <!-- 标签引入 col="red"传入参数改变颜色-->
        <count-down col="red" @end="ending"></count-down>
    </div>
</template>
<script>
    // 组件引入
    import countdown from '@/components/countdown.vue'
    export default {
        data(){
            return{

            }
        },
        methods:{
            ending(){
                alert('已经结束了');
            }
        },
        // 组件注册
        components:{
            'count-down': countdown
        }
    }
</script>









